package com.example.book_recommend.service;

import com.example.book_recommend.entity.Cart;
import com.example.book_recommend.entity.OrderDetail;

import java.util.ArrayList;

public interface CartService {
    Boolean addBook(int uid, Long bookId, int count);
    Boolean delBook(int uid, Long bookId, int count);
    ArrayList<Cart> searchByUID(int uid);
    ArrayList<ArrayList<String>> searchNU(ArrayList<Long> bookId);
    OrderDetail  directPay(int uid, Long bookId, int count);
    ArrayList<OrderDetail> payWithCart(ArrayList<Integer> cartIds);
    void updateTotal();
}
